// models/uploadModel.js
const mongoose = require('mongoose')
const dayjs = require('dayjs')
const uploadSchema = new mongoose.Schema({
  originalFilename: { type: String, required: true },
  mimetype: { type: String, required: true },
  path: { type: String, required: true },
  size: { type: Number, required: true },
  uploadDate: { type: String, default: dayjs().format('YYYY-MM-DD HH:mm:ss') }
})
module.exports = mongoose.model('Upload', uploadSchema)
